﻿using SqlSugar;

namespace AutoTest.Domain.Entities
{
    /// <summary>
    /// 用户开通产品信息
    /// </summary>
    [SugarTable("t_user_production_relation", TableDescription = "用户开通产品信息")]
    public class UserProductRelation : AllBaseEntity
    {
        /// <summary>
        /// 主键Id
        /// </summary>
		[SugarColumn(IsPrimaryKey = true, ColumnName = "id", ColumnDescription = "主键Id")]
        public long Id { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
		[SugarColumn(ColumnName = "user_id", ColumnDescription = "用户Id")]
        public long UserId { get; set; }
        /// <summary>
        /// 产品Id
        /// </summary>
		[SugarColumn(ColumnName = "product_id", ColumnDescription = "产品Id")]
        public long ProductId { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        [SugarColumn(ColumnName = "product_name", ColumnDescription = "产品名称")]
        public string ProductName { get; set; } = string.Empty;

        /// <summary>
        /// 有效时间
        /// </summary>
		[SugarColumn(ColumnName = "valid_time", ColumnDescription = "有效时间")]
        public DateTime ValidTime { get; set; }
    }
}
